package com.aihna.mall.domain.bo;

import com.aihna.mall.domain.StoreProductPropertyValue;
import com.aihna.common.core.validate.AddGroup;
import com.aihna.common.core.validate.EditGroup;
import com.aihna.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 商品属性值业务对象 vvl_store_product_property_value
 *
 * @author Joseph.Chen
 * @date 2024-03-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = StoreProductPropertyValue.class, reverseConvertGenerate = false)
public class StoreProductPropertyValueBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 属性ID
     */
    @NotNull(message = "属性ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long propertId;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 备注
     */
    private String remark;


}
